# New ports collection makefile for:	mail
# Date created:		2006-09-21
# Whom:			Gea-Suan Lin <gslin@gslin.org>
#
# $Id: Makefile 178 2006-09-27 01:52:19Z gslin $
#

PORTNAME=	mail
PORTVERSION=	1.2
CATEGORIES=	cs
MASTER_SITES=	#
DISTFILES=	#

MAINTAINER=	ta@cs.nctu.edu.tw
COMMENT=	Install mail environment

BUILD_DEPENDS=	${LOCALBASE}/bin/bogofilter:${PORTSDIR}/mail/bogofilter-qdbm \
		${LOCALBASE}/bin/elm:${PORTSDIR}/mail/elm+ME \
		${LOCALBASE}/bin/maildrop:${PORTSDIR}/mail/maildrop \
		${LOCALBASE}/bin/pine:${PORTSDIR}/chinese/pine4 \
		${LOCALBASE}/bin/procmail:${PORTSDIR}/mail/procmail \
		${LOCALBASE}/bin/qsf:${PORTSDIR}/mail/qsf \
		${LOCALBASE}/bin/spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
		${LOCALBASE}/bin/spamcup.pl:${PORTSDIR}/mail/spamcup \
		${LOCALBASE}/etc/Muttrc:${PORTSDIR}/cs/muttConf
RUN_DEPENDS:=	${BUILD_DEPENDS}

MAILSPOOL=	/var/mail
NO_BUILD=	yes

do-install:
	@test -d ${MAILSPOOL} && ${RMDIR} ${MAILSPOOL} || ${TRUE}
	${LN} -sf /net/mail ${MAILSPOOL}

.include <bsd.port.mk>
